package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-10-08
 */
public class WechatSendRepairUse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 派修信息
     */
    private Long pid;
    /**
     * 物料
     */
    private Long wechatMaterial;
    @TableField(exist = false)
    private WechatMaterial wechatMaterialName;
    /**
     * 类型是物料还是部件
     */
    private Integer type;
    /**
     * 出库信息
     */
    private Long wechatMaterialDetail;
    @TableField(exist = false)
    private WechatMaterialDetail wechatMaterialDetailName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 部件信息
     */
    private Long wechatParts;
    @TableField(exist = false)
    private WechatParts wechatPartsName;
    /**
     * 部件信息出库信息
     */
    private Long wechatPartsDetail;
    @TableField(exist = false)
    private WechatPartsDetail wechatPartsDetailName;
    private  Float  nums;
    public Float getNums() {
        return nums;
    }
    public void setNums(Float nums) {
        this.nums = nums;
    }
    public WechatMaterial getWechatMaterialName() {
        return wechatMaterialName;
    }
    public void setWechatMaterialName(WechatMaterial wechatMaterialName) {
        this.wechatMaterialName = wechatMaterialName;
    }

    public WechatMaterialDetail getWechatMaterialDetailName() {
        return wechatMaterialDetailName;
    }

    public void setWechatMaterialDetailName(WechatMaterialDetail wechatMaterialDetailName) {
        this.wechatMaterialDetailName = wechatMaterialDetailName;
    }

    public WechatParts getWechatPartsName() {
        return wechatPartsName;
    }

    public void setWechatPartsName(WechatParts wechatPartsName) {
        this.wechatPartsName = wechatPartsName;
    }

    public WechatPartsDetail getWechatPartsDetailName() {
        return wechatPartsDetailName;
    }

    public void setWechatPartsDetailName(WechatPartsDetail wechatPartsDetailName) {
        this.wechatPartsDetailName = wechatPartsDetailName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getWechatMaterial() {
        return wechatMaterial;
    }

    public void setWechatMaterial(Long wechatMaterial) {
        this.wechatMaterial = wechatMaterial;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getWechatMaterialDetail() {
        return wechatMaterialDetail;
    }

    public void setWechatMaterialDetail(Long wechatMaterialDetail) {
        this.wechatMaterialDetail = wechatMaterialDetail;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getWechatParts() {
        return wechatParts;
    }

    public void setWechatParts(Long wechatParts) {
        this.wechatParts = wechatParts;
    }

    public Long getWechatPartsDetail() {
        return wechatPartsDetail;
    }

    public void setWechatPartsDetail(Long wechatPartsDetail) {
        this.wechatPartsDetail = wechatPartsDetail;
    }

    @Override
    public String toString() {
        return "WechatSendRepairUse{" +
        "id=" + id +
        ", pid=" + pid +
        ", wechatMaterial=" + wechatMaterial +
        ", type=" + type +
        ", wechatMaterialDetail=" + wechatMaterialDetail +
        ", createTime=" + createTime +
        ", wechatParts=" + wechatParts +
        ", wechatPartsDetail=" + wechatPartsDetail +
        "}";
    }
}
